package middlewares

import (
	"github.com/gin-gonic/gin"
	"HeadLineNews/pkg/db/cache"
)

// AdminLoginRequired admin 登录验证中间件
func AdminLoginRequired(c *gin.Context) {
	cache.LoginRequired(c, cache.AdminTokenCache())
}

// UserLoginRequired user 登录中间件
func UserLoginRequired(c *gin.Context) {
	cache.LoginRequired(c, cache.UserTokenCache())
}
